{%  set isNav = true %}
{% extends './layout/layout.html' %}

{#  引入宏  #}
{% import './macros/blog-list.html' as list %}
{% import './macros/loadMore.html' as loadBtn %}

{% block headCss %}
<link rel="stylesheet" href="/css/profile.css">
{% endblock %}
{% block content %}
<div class="container">

  <div class="col-lg-8">
    <h2>广场页</h2>
    <div class="item-wrapper">
      {% if blogList.length > 0 %}
      {{ list.list(blogList, isCanReply = true) }}
      {% else %}
      <p>暂无数据</p>
      {% endif %}
    </div>
    {{ loadBtn.loadMore(
      pageIndex,
      pageSize,
      count,
      api = '/api/blog/loadSquareMore/'
    ) }}
  </div>
  <!-- 右侧内容 -->
  <div class="col-lg-4">

  </div>
</div>
{% endblock %}